(function () {
    var module = {};
    var tools = Tools();
   /* var result='SUCCESS';//tools.getParam('result');
    var bizCode='openAccount';//tools.getParam('bizCode');
    var message='message';//tools.getParam('message');
*/
    var result=tools.getParam('result');
    var bizCode=tools.getParam('bizCode');
    var message=tools.getParam('message');


    module.init=function () {
        tools.getUserInfo();

        $(function () {
            //开户  //绑卡换卡
            if(bizCode=='openAccount'||bizCode=='changeBankCard'){

                if(result=='SUCCESS'){
                    $('#resultFirst').text('我要充值');
                    $('#resultFirst').attr('href',accountURL+'recharge.html');

                }
            }

             //充值
            if(bizCode=='recharge'){

                if(result=='SUCCESS'){
                    $('#resultFirst').text('我要投资');
                    $('#resultFirst').attr('href',tools.goInvest);

                }
            }
            //提现   //解卡
            if(bizCode=='withdraw'||bizCode=='unbindBankCard'){
                if(result=='SUCCESS'){ 
                  $('.oa_btAll').hide();
                    $('#resultOther').show();
                    $('#resultWc').attr('href','center.html')
                }
            }

            //投资
            if(bizCode=='unbindBankCard'){

                if(result=='SUCCESS'){
                    $('#resultFirst').text('继续投资');
                    $('#resultFirst').attr('href',tools.goInvest);

                }
            }

            $('.oa_info').html(message);
            if(result=='SUCCESS'){
                $('.oa_log').addClass('oa_success');
                $('#resultSecond').attr('href','center.html');
                $('#resultSecond').text('完成');
            }else{
                $('.oa_log').addClass('oa_fail');
                $('.oa_btAll').hide();
                $('#resultOther').show();
                $('#resultWc').attr('href','center.html')
            }
        })

    };


    module.init();
})();